package com.ms.demo.annotation;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @description: 测试切面的优先级
 * @author: ms
 * @create: 2022-08-31 17:29
 */
@Component
@Aspect//将当前组件标识为切面
@Order(1)
public class ValidateAspect {

    @Before("com.ms.demo.annotation.LogAspect.pointCut()")
    public void before(JoinPoint joinPoint) {
        System.out.println("ValidateAspect..测试切面类的优先级");
    }

}